package com.whfc.emp.dao;

import com.whfc.emp.dto.AppTrainingCategoryDTO;
import com.whfc.emp.dto.AppTrainingCategoryDTO;
import com.whfc.emp.entity.AppTrainingCategory;
import com.whfc.emp.param.AppTrainingCategoryListParam;
import com.whfc.emp.param.AppTrainingCategoryListParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: realm
 * @date: 2025-10-22 15:24
 * @description: //todo
 */
public interface AppTrainingCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppTrainingCategory record);

    int insertSelective(AppTrainingCategory record);

    AppTrainingCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppTrainingCategory record);

    int updateByPrimaryKey(AppTrainingCategory record);

    /**
     * 通过ID批量查询
     *
     * @param ids
     * @return
     */
    List<AppTrainingCategoryDTO> selectByIds(@Param("ids") List<Integer> ids);

    /**
     * 获取培训列表
     *
     * @param request
     * @return
     */
    List<AppTrainingCategoryDTO> selectByParam(AppTrainingCategoryListParam request);

    /**
     * 删除培训记录
     *
     * @param id
     */
    void deleteLogicById(@Param("id") Integer id);

    /**
     * 获取所有分类
     *
     * @return
     */
    List<AppTrainingCategory> selectAll();


}